package com.atguigu.tingshu.user.client.impl;


import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.user.VipServiceConfig;
import com.atguigu.tingshu.user.client.UserFeignClient;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 用户降级伪客户端
 *
 * @author ym
 * @date 2025/06/28 22:58
 */
@Slf4j
@Component
public class UserDegradeFeignClient implements UserFeignClient {

    /**
     * 获取用户信息vo
     *
     * @param userId 用户ID
     * @return {@link Result<UserInfoVo>}
     */
    @Override
    public Result<UserInfoVo> getUserInfoVo(Long userId) {
        log.error("远程调用[用户服务]getUserInfoVoByUserId方法服务降级");
        return null;
    }

    /**
     * getuser是付费轨道
     *
     * @param userId            用户ID
     * @param albumId           专辑ID
     * @param needcheckTrackIds 需要检查跟踪ID
     * @return {@link Result<Map<Long, Integer>>}
     */
    @Override
    public Result<Map<Long, Integer>> getuserIsPaidTrack(Long userId, Long albumId, List<Long> needcheckTrackIds) {
        log.error("远程调用[用户服务]getuserIsPaidTrack方法服务降级");
        return null;
    }

    /**
     * 获取vip服务配置
     *
     * @param id id
     * @return {@link Result<VipServiceConfig>}
     */
    @Override
    public Result<VipServiceConfig> getVipServiceConfig(Long id) {
        log.error("远程调用[用户服务]getVipServiceConfig方法服务降级");
        return null;
    }

    @Override
    public Result<Boolean> getalbumisPaidorNot(Long albumId) {
        log.error("远程调用[用户服务]getalbumisPaidorNot方法服务降级");
        return null;
    }

    @Override
    public Result<Boolean> getUserIsVipOrNot(Long albumId) {
        log.error("远程调用[用户服务]getUserIsVipOrNot方法服务降级");
        return null;
    }

    @Override
    public Result<List<Long>> getuserIsPaidTrackIdList(Long albumId, List<Long> needcheckIdList) {
        log.error("远程调用[用户服务]getuserIsPaidTrackIdList方法服务降级");
        return null;
    }

    @Override
    public Result addUserPaidRecord(UserPaidRecordVo userPaidRecordVo) {
        log.error("远程调用[用户服务]addUserPaidRecord方法服务降级");
        return null;
    }
}
